import { getJobs } from '../../api/job'

export default {
  actions: {
    getJobs: ({ commit }, option) => {
      return new Promise((resolve, reject) => {
        getJobs(option).then(response => {
          resolve(response.data)
        }).catch(error => {
          reject(error)
        })
      })
    }
  }
}
